<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Ball.Ball</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="autorzy: Elwira Kowalewska, Piotr Karolus, Kacper Kapu&#347;niak grupa 21K7">
Modelowanie i symulacja zderze&#324; spr&#281;&#380;ystych
</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="Ball-module.html">Module&nbsp;Ball</a> ::
        Class&nbsp;Ball
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="Ball.Ball-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class Ball</h1><p class="nomargin-top"><span class="codelink"><a href="Ball-pysrc.html#Ball">source&nbsp;code</a></span></p>
<pre class="base-tree">
object --+
         |
        <strong class="uidshort">Ball</strong>
</pre>

<hr />
<p>Klasa reprezentuj&#261;ca obiekt pi&#322;eczki poruszaj&#261;cej si&#281; po ekranie z 
  odpowiedni&#261; pr&#281;dko&#347;ci&#261; i w odpowiednim kierunku.</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Ball.Ball-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">Radius</span>,
        <span class="summary-sig-arg">Position</span>,
        <span class="summary-sig-arg">Mass</span>,
        <span class="summary-sig-arg">Velocity</span>)</span><br />
      Konstruktor tworzy obiekt pi&#322;eczki o podanych parametrach.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Ball-pysrc.html#Ball.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Ball.Ball-class.html#getPosition" class="summary-sig-name">getPosition</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Funkcja zwracaj&#261;ca po&#322;o&#380;enie pi&#322;eczki.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Ball-pysrc.html#Ball.getPosition">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Ball.Ball-class.html#setPosition" class="summary-sig-name">setPosition</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">Position</span>)</span><br />
      Procedura ustawiaj&#261;ca po&#322;o&#380;enie pi&#322;eczki.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Ball-pysrc.html#Ball.setPosition">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Ball.Ball-class.html#setPositionX" class="summary-sig-name">setPositionX</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">positionX</span>)</span><br />
      Procedura ustawiaj&#261;ca po&#322;o&#380;enie X pi&#322;eczki.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Ball-pysrc.html#Ball.setPositionX">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Ball.Ball-class.html#setPositionY" class="summary-sig-name">setPositionY</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">positionY</span>)</span><br />
      Procedura ustawiaj&#261;ca po&#322;o&#380;enie Y pi&#322;eczki.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Ball-pysrc.html#Ball.setPositionY">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Ball.Ball-class.html#setVelocity" class="summary-sig-name">setVelocity</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">NewVelocity</span>)</span><br />
      Procedura ustawiaj&#261;ca now&#261; pr&#281;dko&#347;&#263; pi&#322;eczki.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Ball-pysrc.html#Ball.setVelocity">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Ball.Ball-class.html#getVelocity" class="summary-sig-name">getVelocity</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Funkcja zwracaj&#261;ca pr&#281;dko&#347;&#263; pi&#322;eczki.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Ball-pysrc.html#Ball.getVelocity">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Ball.Ball-class.html#getRadius" class="summary-sig-name">getRadius</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Funkcja zwracaj&#261;ca promie&#324; pi&#322;eczki</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Ball-pysrc.html#Ball.getRadius">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Ball.Ball-class.html#getMass" class="summary-sig-name">getMass</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Funkcja zwracaj&#261;ca mas&#281; pi&#322;eczki.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Ball-pysrc.html#Ball.getMass">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Ball.Ball-class.html#collidesWith" class="summary-sig-name">collidesWith</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">anotherBall</span>)</span><br />
      Funkcja sprawdzaj&#261;ca, czy pi&#322;eczka koliduje z pi&#322;eczk&#261; przekazan&#261; w 
      parametrze.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Ball-pysrc.html#Ball.collidesWith">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Ball.Ball-class.html#collidesWithWall" class="summary-sig-name">collidesWithWall</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">wall</span>)</span><br />
      Funkcja sprawdzaj&#261;ca, czy pi&#322;eczka koliduje ze &#347;cian&#261; przekazan&#261; w 
      parametrze.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Ball-pysrc.html#Ball.collidesWithWall">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Ball.Ball-class.html#draw" class="summary-sig-name">draw</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">Dc</span>,
        <span class="summary-sig-arg">CanvasPosition</span>,
        <span class="summary-sig-arg">paintVelocity</span>)</span><br />
      Procedura rysuj&#261;ca pi&#322;eczk&#281; na p&#322;&#243;tnie w miejscu podanych 
      wsp&#243;&#322;rz&#281;dnych.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Ball-pysrc.html#Ball.draw">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__format__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__repr__</code>,
      <code>__setattr__</code>,
      <code>__sizeof__</code>,
      <code>__str__</code>,
      <code>__subclasshook__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="PenColour"></a><span class="summary-name">PenColour</span> = <code title="u'Black'"><code class="variable-quote">u'</code><code class="variable-string">Black</code><code class="variable-quote">'</code></code><br />
      Zmienna okre&#347;laj&#261;ca kolor konturu pi&#322;eczki.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="PenWidth"></a><span class="summary-name">PenWidth</span> = <code title="1">1</code><br />
      Zmienna okre&#347;laj&#261;ca szeroko&#347;&#263; konturu pi&#322;eczki.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="PenStyle"></a><span class="summary-name">PenStyle</span> = <code title="100">100</code><br />
      Zmienna okre&#347;laj&#261;ca styl rysowania konturu pi&#322;eczki.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="BrushColour"></a><span class="summary-name">BrushColour</span> = <code title="wx.Colour(255, 206, 80, 255)">wx.Colour(255, 206, 80, 255)</code><br />
      Zmienna okre&#347;laj&#261;ca kolor wype&#322;nienia pi&#322;eczki.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="BrushStyle"></a><span class="summary-name">BrushStyle</span> = <code title="100">100</code><br />
      Zmienna okre&#347;laj&#261;ca styl wype&#322;nienia pi&#322;eczki.
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Properties</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Properties"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">Radius</span>,
        <span class="sig-arg">Position</span>,
        <span class="sig-arg">Mass</span>,
        <span class="sig-arg">Velocity</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Ball-pysrc.html#Ball.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Konstruktor tworzy obiekt pi&#322;eczki o podanych parametrach.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>Radius</code></strong> - Parametr okre&#347;laj&#261;cy promie&#324; pi&#322;eczki.</li>
        <li><strong class="pname"><code>Position</code></strong> - Parametr okre&#347;laj&#261;cy punkt b&#281;d&#261;cy pozycj&#261; pi&#322;eczki.</li>
        <li><strong class="pname"><code>Mass</code></strong> - Parametr okre&#347;laj&#261;cy mas&#281; pi&#322;eczki.</li>
        <li><strong class="pname"><code>Velocity</code></strong> - Parametr okre&#347;laj&#261;cy pr&#281;dko&#347;&#263; pi&#322;eczki.</li>
    </ul></dd>
    <dt>Overrides:
        object.__init__
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="getPosition"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getPosition</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Ball-pysrc.html#Ball.getPosition">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja zwracaj&#261;ca po&#322;o&#380;enie pi&#322;eczki.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>Pozycj&#281; pi&#322;eczki.</dd>
  </dl>
</td></tr></table>
</div>
<a name="setPosition"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setPosition</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">Position</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Ball-pysrc.html#Ball.setPosition">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura ustawiaj&#261;ca po&#322;o&#380;enie pi&#322;eczki.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>Position</code></strong> - Parametr okre&#347;laj&#261;cy pozycj&#281; pi&#322;eczki.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="setPositionX"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setPositionX</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">positionX</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Ball-pysrc.html#Ball.setPositionX">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura ustawiaj&#261;ca po&#322;o&#380;enie X pi&#322;eczki.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>positionX</code></strong> - Parametr okre&#347;laj&#261;cy pozycj&#281; pi&#322;eczki na osi X.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="setPositionY"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setPositionY</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">positionY</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Ball-pysrc.html#Ball.setPositionY">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura ustawiaj&#261;ca po&#322;o&#380;enie Y pi&#322;eczki.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>positionY</code></strong> - Parametr okre&#347;laj&#261;cy pozycj&#281; pi&#322;eczki na osi Y.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="setVelocity"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setVelocity</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">NewVelocity</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Ball-pysrc.html#Ball.setVelocity">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura ustawiaj&#261;ca now&#261; pr&#281;dko&#347;&#263; pi&#322;eczki.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>NewVelocity</code></strong> - Parametr okre&#347;laj&#261;cy now&#261; warto&#347;&#263; pr&#281;dko&#347;ci pi&#322;eczki.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="getVelocity"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getVelocity</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Ball-pysrc.html#Ball.getVelocity">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja zwracaj&#261;ca pr&#281;dko&#347;&#263; pi&#322;eczki.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>Pr&#281;dko&#347;&#263; pi&#322;eczki.</dd>
  </dl>
</td></tr></table>
</div>
<a name="getRadius"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getRadius</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Ball-pysrc.html#Ball.getRadius">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja zwracaj&#261;ca promie&#324; pi&#322;eczki</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>Promie&#324; pi&#322;eczki.</dd>
  </dl>
</td></tr></table>
</div>
<a name="getMass"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getMass</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Ball-pysrc.html#Ball.getMass">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja zwracaj&#261;ca mas&#281; pi&#322;eczki.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>Mas&#281; pi&#322;eczki.</dd>
  </dl>
</td></tr></table>
</div>
<a name="collidesWith"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">collidesWith</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">anotherBall</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Ball-pysrc.html#Ball.collidesWith">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja sprawdzaj&#261;ca, czy pi&#322;eczka koliduje z pi&#322;eczk&#261; przekazan&#261; w 
  parametrze.</p>
  <p>Sprawdzenie polega na por&#243;wnaniu czy odleg&#322;o&#347;&#263; mi&#281;dzy pi&#322;eczkami jest 
  wi&#281;ksza ni&#380; suma ich promieni. Je&#380;eli zosta&#322;a wybrana tylko jedna 
  pi&#322;eczka to kolizja jest niemo&#380;liwa.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>anotherBall</code></strong> - Parametr okre&#347;laj&#261;cy inn&#261; pi&#322;eczk&#281;, z kt&#243;r&#261; mo&#380;e wyst&#261;pi&#263; 
          kolizja.</li>
    </ul></dd>
    <dt>Returns:</dt>
        <dd><ol start="1">
            <li>
              Je&#347;li wybrana zosta&#322;a tylko jedna pi&#322;eczka - zwracana jest 
              warto&#347;&#263; <b>False</b> (kolizja jest niemo&#380;liwa).
            </li>
            <li>
              Je&#380;eli odleg&#322;o&#347;&#263; pomiedzy &#347;rodkami pi&#322;eczek jest mniejsza, 
              lub r&#243;wna sumie ich promieni - zwracana jest warto&#347;&#263; 
              <b>True</b> (pi&#322;eczki koliduj&#261; ze sob&#261;).
            </li>
            <li>
              Je&#380;eli odleg&#322;o&#347;&#263; pomiedzy &#347;rodkami pi&#322;eczek jest wi&#281;ksza ni&#380; 
              suma ich promieni - zwracana jest warto&#347;&#263; <b>False</b> 
              (pi&#322;eczki nie koliduj&#261; ze sob&#261;)
            </li>
          </ol></dd>
  </dl>
</td></tr></table>
</div>
<a name="collidesWithWall"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">collidesWithWall</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">wall</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Ball-pysrc.html#Ball.collidesWithWall">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja sprawdzaj&#261;ca, czy pi&#322;eczka koliduje ze &#347;cian&#261; przekazan&#261; w 
  parametrze.</p>
  <p>Sprawdzenie polega na por&#243;wnaniu wysoko&#347;ci tr&#243;jk&#261;ta zbudowanego z 
  trzech punkt&#243;w A,B,C (gdzie A i B nale&#380;&#261; do &#347;ciany, a C jest &#347;rodkiem 
  sprawdzanej pi&#322;eczki) oraz promienia pi&#322;eczki.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>wall</code></strong> - Parametr okre&#347;laj&#261;cy &#347;cian&#281;, z kt&#243;r&#261; mo&#380;e wyst&#261;pi&#263; kolizja.</li>
    </ul></dd>
    <dt>Returns:</dt>
        <dd><ol start="1">
            <li>
              Je&#380;eli wysoko&#347;&#263; tr&#243;jk&#261;ta ABC jest mniejsza, lub r&#243;wna 
              d&#322;ugo&#347;ci promienia - zracana jest warto&#347;&#263; <b>True</b> 
              (nast&#261;pi&#322;a kolizja)
            </li>
            <li>
              Je&#380;eli wysoko&#347;&#263; tr&#243;jk&#261;ta ABC jest wi&#281;ksza ni&#380; d&#322;ugo&#347;ci 
              promienia
              <ul>
                <li>
                  zwracana jest warto&#347;&#263; <b>False</b> (nie nast&#261;pi&#322;a 
                  kolizja)
                </li>
              </ul>
            </li>
          </ol></dd>
  </dl>
</td></tr></table>
</div>
<a name="draw"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">draw</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">Dc</span>,
        <span class="sig-arg">CanvasPosition</span>,
        <span class="sig-arg">paintVelocity</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Ball-pysrc.html#Ball.draw">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura rysuj&#261;ca pi&#322;eczk&#281; na p&#322;&#243;tnie w miejscu podanych 
  wsp&#243;&#322;rz&#281;dnych.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>Dc</code></strong> - Parametr ustawiaj&#261;cy spos&#243;b rysowania pi&#322;eczki na podstawie 
          atrubut&#243;w klasy.</li>
        <li><strong class="pname"><code>CanvasPosition</code></strong> - Parametr okre&#347;laj&#261;cy pozycj&#281; p&#322;&#243;tna.</li>
        <li><strong class="pname"><code>paintVelocity</code></strong> - Parametr odpowiadaj&#261;cy za rysowanie wektor&#243;w pr&#281;dko&#347;ci pi&#322;eczek.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="autorzy: Elwira Kowalewska, Piotr Karolus, Kacper Kapu&#347;niak grupa 21K7">
Modelowanie i symulacja zderze&#324; spr&#281;&#380;ystych
</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Jan 29 03:27:58 2014
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
